﻿<div class="user-visitors" id="user-visitors"><h3>最近访客</h3>
<ul class="visitor-list">
    {php}$visitors_list = zanpian_mysql_visitors('uid:'.$userinfo['userid'].';limit:8;order:visitors_addtime desc');
    {/php}
     {volist name="visitors_list" id="fk"}
     {php}$avatar=ps_getavatar($fk['visitors_userid'],$fk['api'][0]['avatar']);{/php}
      <li><a href="{:zanpian_user_url('user/home/index',array('id'=>$fk['visitors_userid']))}" target="_blank"><img src="{$avatar['big']}" alt="{$fk.nickname}" /></a><h5><a target="_blank" href="{:zanpian_user_url('user/home/index',array('id'=>$fk['visitors_userid']))}">{$fk.nickname}</a></h5><p>{$fk.visitors_addtime|date='m-d H:i:s',###}</p><p class="guanzhu" style="display:none;"><a href="javascript:" val="{$fk.visitors_userid}" class="focus">+关注</a></p></li>
      {/volist}
  </ul></div><!-- // user-visitors end --> 